package cn.gan.loveofsoul.commons.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description:
 * @Author: ganwh
 * @Since: 2023/10/9 15:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    //返回码
    private Integer code;
    //返回消息
    private String message;
    //返回数据
    private Object data;

    public Result(Integer code, Object data) {
        this.data = data;
        this.code = code;
    }

    public Result(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}